import React, { useState } from "react";
import { View, Image } from "@tarojs/components";
import Taro, { useDidShow } from "@tarojs/taro";

import api from "@api/api.js";

import "./index.less";

export default () => {
  const [list, setList] = useState([]);
  useDidShow(() => {
    getList();
  });
  // 获取提现记录
  const getList = async () => {
    const { data } = await api.getBalanceRecord();
    setList(data);
  };
  return (
    <View className="bgBox">
      <View className="listBox">
        {list &&
          list.map((item) => {
            <View></View>;
          })}
      </View>
    </View>
  );
};
